package Client;

import java.io.IOException;
import java.net.*;

public class Client_main {
	
	public static void main(String[] args) {
		String host = "127.0.0.1";
		int port = 12345;
		Socket scoket;
		MessageSender sender;
		MessageReceiver receiver;
		try
		{	
			scoket = new Socket(host,port);
			sender = new MessageSender(scoket);
			receiver = new MessageReceiver(scoket);
			
			sender.run();
			receiver.run();
		}catch(UnknownHostException e)
		{
			e.getMessage();
		}catch(IOException e)
		{
			e.getMessage();
		}
		
	}

}
